/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.cmmp.uac.pages.home;

import com.eelpo.cmmp.core.wicket.page.basic.DeniedPage;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.PageMap;
import org.apache.wicket.RequestCycle;
import org.apache.wicket.markup.html.WebComponent;
import org.apache.wicket.model.Model;

/**
 * <pre>
 * 
 * 主框架中的内容部分,分Left和Right
 * 
 * </pre>
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
public class BodyFrame extends DeniedPage {

	public BodyFrame() {

		String rightFrameSrc = RequestCycle.get().urlFor(PageMap.forName("bodyRight"), EmptyPage.class, null).toString();
		WebComponent rightFrameTag = new WebComponent("bodyRight");
		rightFrameTag.add(new AttributeModifier("src", new Model<String>(rightFrameSrc)));
		add(rightFrameTag);

	}
}
